package com.nebula.common;

import java.util.ArrayList;

/**
 * @author CcccX
 * @create 2019-01-11 15:30
 */
public class TreeResult {
    private String id;//id
    private String text;//标题内容
    private String state;//状态 closed-合起、open-打开
    private ArrayList<TreeResult> children;//子节点，子节点有0个或多个，所以用链表存放
    private String parentId;//父节点   根节点为0
    private String iconCls;
    private String url;
    private String desc; //描述
    private int sort; //排列序号
    private String checkState;
    private boolean checked;

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public String getCheckState() {
        return checkState;
    }

    public void setCheckState(String checkState) {
        this.checkState = checkState;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public ArrayList<TreeResult> getChildren() {
        return children;
    }

    public void setChildren(ArrayList<TreeResult> children) {
        this.children = children;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }
}
